/**
 * 
 */
package t4j;

/**
 * @author sz
 *
 * create time：2012-8-14
 */

public class Flower {

	int petalCount =0;
	
	String s = "initial value";
	
	Flower(int petals){
		petalCount = petals;
		
		System.out.println("A:"+ petalCount);
	}
	
	Flower(String ss){
		this(11);
		System.out.println("B:" + ss);
		
	
		s=ss;
	}
	
	Flower(String s, int petals){
		this(s);
		
		this.s=s;
		
		System.out.println("C:");
	}
	
	Flower(){
		this("hi",47);
		System.out.println("default constructor");
	}
	
	void printPetalCount(){
		
	
		System.out.println("petalCount = " + petalCount +"s=" + s);
	}
	/**
	 * @param args
	 */
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		//Flower x = new Flower();
		
		//x.printPetalCount();
		ff();
		
	
	}
	
	
	native static void ff();

}
